package com.ehi.@appName@.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import com.ehi.@appName@.dao.CarrierDao;
import com.ehi.@appName@.domain.Carrier;

@Service
public class CarrierService {

    @Autowired
    private CarrierDao carrierDao;

    @Cacheable(value = "mc.@appName@.CarrierService.getById#3600", key = "#id")
    public Carrier getById(Long id) {
        return carrierDao.getById(id);
    }
}
